package com.jacklin.order.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: jacklin
 * @since: 2022/8/4 10:29
 */
@FeignClient(name = "product-service")
public interface ProductServiceFeignClient {

    /**
     * 扣减库存
     *
     * @author: jacklin
     * @date: 2022/8/4 10:34
     **/
    @RequestMapping(value = "/reduceStock",method = RequestMethod.GET)
    Boolean reduceStock(@RequestParam(value = "id") Integer id, @RequestParam(value = "amount") Integer amount);
}
